package com.android.zgx.dialog;

import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;

public class Main extends Activity {
	Context mContext;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        mContext=Main.this;
    }
    
    public void RoundCornerDlg(View view){
    	Dialog dlgRoundCorner=new Dialog(mContext,R.style.dialog);
    	LayoutInflater inflater = (LayoutInflater) this
    		.getSystemService(LAYOUT_INFLATER_SERVICE);
    	View viewRoundCorner=inflater.inflate(R.layout.dlg_round_corner, null);
    	dlgRoundCorner.setContentView(viewRoundCorner);
    	dlgRoundCorner.show();
    }
}